package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CgfkDescBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CgfkDescService extends BaseService<CgfkDescBean> {

	CgfkDescBean getCgfkDescBeanById(String id) throws Exception;
	
	void removeCgfkDescBeanById(String id) throws Exception;
	
	void removeCgfkDescBeanByIds(String ids) throws Exception;
	
	CgfkDescBean saveCgfkDescBean(CgfkDescBean crm) throws Exception;
	
	CgfkDescBean updateCgfkDescBean(CgfkDescBean crm) throws Exception;
	
	Page<CgfkDescBean>  findCgfkDescBeanByCond(CgfkDescBean bean,
			Page<CgfkDescBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCgfkDescBeanExt(String sql) throws Exception;

	String findCgfkDescBeanExtCreate(String tableName) throws Exception;

	String findCgfkDescBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCgfkDescBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCgfkDescBeanExtData(String tableName, String id)
			throws Exception;
}